#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os


class Config(object):
    basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    DEBUG = True


class DevelopmentConfig(Config):
    DEBUG = True
    # db
    DB_HOST = '00000'
    DB_PORT = 3306
    DB_USER = '000'
    DB_PASSWORD = '0000'
    DB_INSTANCE_NAME = 'aaaaaaaaaa'
    DB_CHARSET = 'utf8'

    # NOTE -------------------------- 下面三个DB的用户密码等信息请仿照邮件内填好，切勿上传至GIT上
    # mppdb2:10.70.49.21:50021
    DB_HOST_MPP_DB2_BGBDPROD = '000'
    DB_PORT_MPP_DB2_BGBDPROD = 88888888
    DB_DBNAME_MPP_DB2_BGBDPROD = '000'
    DB_USER_MPP_DB2_BGBDPROD = '000'
    DB_PASSWORD_MPP_DB2_BGBDPROD = '000'

    # MES的DB2
    DB_HOST_MES_DB2_BG5AM0 = '000'
    DB_PORT_MES_DB2_BG5AM0 = 88888888
    DB_DBNAME_MES_DB2_BG5AM0 = '000'
    DB_USER_MES_DB2_BG5AM0 = '000'
    DB_PASSWORD_MES_DB2_BG5AM0 = '000'

    # sts数据库
    DB_HOST_STS = '000'
    DB_PORT_STS = 88888888
    DB_DBNAME_STS = '000'
    DB_USER_STS = '000'
    DB_PASSWORD_STS = '000'

    # BLJ
    DB_HOST_BLJ = '000'
    DB_PORT_BLJ = 88888888
    DB_DBNAME_BLJ = '000'
    DB_USER_BLJ = '000'
    DB_PASSWORD_BLJ = '000'

    
class ProductionConfig(Config):
    DEBUG = False
    # db
    DB_HOST = '00000'
    DB_PORT = 3306
    DB_USER = '000'
    DB_PASSWORD = '0000'
    DB_INSTANCE_NAME = 'aaaaaaaaaaaa'
    DB_CHARSET = 'utf8'

    # NOTE -------------------------- 下面三个DB的用户密码等信息请仿照邮件内填好，切勿上传至GIT上
    # mppdb2:10.70.49.21:50021
    DB_HOST_MPP_DB2_BGBDPROD = '000'
    DB_PORT_MPP_DB2_BGBDPROD = 88888888
    DB_DBNAME_MPP_DB2_BGBDPROD = '000'
    DB_USER_MPP_DB2_BGBDPROD = '000'
    DB_PASSWORD_MPP_DB2_BGBDPROD = '000'

    # MES的DB2
    DB_HOST_MES_DB2_BG5AM0 = '000'
    DB_PORT_MES_DB2_BG5AM0 = 88888888
    DB_DBNAME_MES_DB2_BG5AM0 = '000'
    DB_USER_MES_DB2_BG5AM0 = '000'
    DB_PASSWORD_MES_DB2_BG5AM0 = '000'

    # sts数据库
    DB_HOST_STS = '000'
    DB_PORT_STS = 88888888
    DB_DBNAME_STS = '000'
    DB_USER_STS = '000'
    DB_PASSWORD_STS = '000'

    # sts数据库
    DB_HOST_STS = '000'
    DB_PORT_STS = 88888888
    DB_DBNAME_STS = '000'
    DB_USER_STS = '000'
    DB_PASSWORD_STS = '000'

    # BLJ
    DB_HOST_BLJ = '000'
    DB_PORT_BLJ = 88888888
    DB_DBNAME_BLJ = '000'
    DB_USER_BLJ = '000'
    DB_PASSWORD_BLJ = '000'


app_config = {
    'dev': DevelopmentConfig,
    'prod': ProductionConfig
}
